<template>
  <div class="login-container">
    <div class="main">
      <div class="left drag"></div>
      <div class="form-container">
        <div class="window-control no-drag">
          <a-button type="text">
            <template #icon>
              <i class="iconfont icon-setting"></i>
            </template>
          </a-button>
          <a-button type="text">
            <template #icon>
              <i class="iconfont icon-minus"></i>
            </template>
          </a-button>
          <a-button type="text">
            <template #icon>
              <i class="iconfont icon-close"></i>
            </template>
          </a-button>
        </div>
        <LoginForm></LoginForm>
        <div class="info">
          <div class="text">河南必和必达电子信息技术有限公司</div>
          <div class="text">v3.0.0.7oky03</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts" name="login">
import { ref } from "vue";
import { UserApi } from "@/api/index";
import LoginForm from "./components/LoginForm.vue";
</script>

<style scoped lang="scss">
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #dbe8fe, #eafafc, #f4e8fb);
  .main {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    .left {
      flex-grow: 5;
      width: 400px;
      background: url("@/assets/images/adv.jpg") no-repeat center center;
      background-size: cover;
    }
  }
}
.form-container {
  position: relative;
  display: flex;
  flex-grow: 2;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 400px;
}
.window-control {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  span {
    color: #666666;
    cursor: pointer;
  }
}
.info {
  position: absolute;
  bottom: 15px;
  width: 100%;
  font-size: 12px;
  line-height: 22px;
  color: #999999;
  text-align: center;
}
</style>
